#ifndef MYTHREAD_H
#define MYTHREAD_H
#include<QThread>
#include <QTcpSocket>
#include<tcpsocket.h>
#include<QWidget>
#include<QByteArray>
class myThread : public QThread
{
    Q_OBJECT
public:
     myThread(QWidget *parent,qintptr p);

signals:
   void t_datasend(int socketdes,const QByteArray arry);
protected:
    void run();   //线程处理函数
public slots:

    void t_recedata(QString d,const QByteArray arry);

private:
    Tcpsocket *tsocket;
    qintptr ptr;

};

#endif // MYTHREAD_H
